package com.yzqp.serverorder.outserver.goods;

import com.yzqp.serverorder.config.MyConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "server-goods", configuration = MyConfiguration.class)
public interface GoodsOutServer {

    @RequestMapping(value = "/updateStock", method = RequestMethod.GET)
    String updateStock(@RequestParam(value = "count") Integer count, @RequestParam(value = "id") Integer id);
}
